                <link href="*WAP*/css/style.css?1.5" rel="stylesheet">
                <div class="pinglun-box whitebg">
                    <div class="news-title">
                        <h2>
                            评论
                        </h2>
                    </div>
                    <div class="pinglun">
                        <div class="pl-520am">
                            <div class="pl-area-post forma" id="plhuifu">
                            	<form class="layui-form layui-form-pane" url="{:url("api/api/commentAdd",array("id"=>$id,"model"=>$c['model']))}">
                            	<input type="hidden" class="huifuS" name="tid">
                                <div class="pl-post">
                                    <div class="pl-textarea">
                                        <textarea class="layui-textarea" name="content" id="content" required="" lay-verify="content"></textarea>
                                    </div>
                                    <div class="pl-tools">
                                        <ul>
                                            <li class="pl-tools-lastchild">
                                                <button class="pl-submit-btn" id="pl-submit-btn-main" lay-submit lay-filter="cmsa">
                                                    发 布
                                                </button>
                                            </li>
                                            <li class="username huifuSM"><i class="layui-icon layui-icon-dialogue" style="color: #1183ee;"></i> 请文明评论</li>
			                                <script type="text/javascript">
			                                $(document).ready(function(){
                                               	$('.huifuSM').click(function(){
                                               		$(".huifuS").val("");
              	                                 	$(".huifuSM").html("<i class='layui-icon layui-icon-dialogue' style='color: #1183ee;'></i> 请文明评论");
                                               	});
                                            });
                                            </script> 
                                        </ul>
                                    </div>
                                </div>  
                                </form>
                            </div>
                            <div class="pl-clr" id="pl-start">
                            </div>
                            <div class="pl-header">
                                <em id="pl-totalnum">
                                    {:fun_st('comment',array('open'=>1,'model'=>$c['model'],'fid'=>$c['id']))}
                                </em>
                                条评论
                                <span class="pl-userinfo" id="pl-userinfo">
                                </span>
                            </div>
                            <div class="pl-show-list" id="pl-show-all">
                            	{volist name=":fun_s('comment',array('open'=>1,'tid'=>0,'fid'=>$c['id'],'model'=>$c['model']),'id desc',10,false,0)" id="vo" empty="<div align='center' style='padding: 100px 0px 100px 0px;'>你来消灭 零 评论</div></div>"}
                                <div class="pl-area pl-show-box" id="pl-show-box-463">
                                    <div class="pl-area-userpic">
                                    	<a href="*URL*/uid_{$vo.uid}.html" target="_blank"class="li-img">
                                       		<img src="{:fun_sc_p('member', array('userid'=>$vo['uid']), 'userhead')}" onerror="this.src='*ADMIN*/img/pic.jpg';">
                                       	</a> 
                                    </div>
                                    <div class="pl-area-post">
                                        <div class="pl-show-title">
                                            <span>
                                                {:fun_sc_p('member', array('userid'=>$vo['uid']), 'username')}
                                            </span>
                                            <span class="pl-show-time pl-fr">
                                                {$vo.time|timeinfo}
                                            </span>
                                        </div>
                                        <div class="pl-show-saytext" style="margin-bottom:10px;">
                                            {$vo.content|htmlspecialchars_decode}
                                        </div>
                                        {volist name=":fun_s('comment',array('open'=>1,'tid'=>$vo.id,'fid'=>$c['id'],'model'=>$c['model']),'id desc',10,false,0)" id="v"}
                                        <div class="ecomment">
                                        	<span class="ecommentauthor">
                                        		<a href="*URL*/uid_{$vo.uid}.html" class="li-nick"	target="_blank">
                                        			{:fun_sc_p('member', array('userid'=>$v['uid']), 'username')} 
                                        		</a>回复 @{:fun_sc_p('member', array('userid'=>$vo['uid']), 'username')}</span>
                                        	<div class="ecommenttext">
                                        		{$v.content|htmlspecialchars_decode}
                                        	</div>
                                        </div> 
                                        {/volist}
                                        <div class="pl-show-tools">
                                            <a class="pl-reply huifu{$vo.id}"  href="#plhuifu">
                                                <i class="iconfont">
                                                     回复
                                                </i>
                                            </a>
			                                <script type="text/javascript">
			                                $(document).ready(function(){
                                               	$('.huifu{$vo.id}').click(function(){
                                               		$(".huifuS").val("{$vo.id}");
              	                                 	$(".huifuSM").html("回复 @ {:fun_sc_p('member', array('userid'=>$vo['uid']), 'username')}<i class='layui-icon layui-icon-close-fill quxiaoico'></i>");
                                               	});
                                            });
                                            </script>   
                                        </div>
                                        <div class="pl-show-replay">
                                        </div>
                                    </div>
                                    <div class="pl-clr">
                                    </div>
                                </div>
                                {/volist}
                            </div>
                            <div class="pagination">
                            	{:fun_s('comment',array('open'=>1,'tid'=>0,'fid'=>$c['id'],'model'=>$c['model']),'id desc',1,false,0)->render()} 
                            </div>
                        </div>
                    </div>
                </div>
                <!--预留插件钩子创建模板请不要去掉-->
                {:h('pinglun')}